package com.hwd.gmall.common.enums;

/**
 * 秒杀订单状态，0未支付，1已支付,2支付失败 3主动取消 4超时取
 *
 * @author 黄伟东/Victor
 * @date 2022/05/11 23:03
 */
public enum SeckillOrderStatusEnum {

    /** 秒杀状态 */
    ZERO("0", "未支付"),
    ONE("1", "已支付"),
    TWE("2", "支付失败"),
    THREE("3", "主动取消"),
    FOUR("4", "超时取消"),
    ;

    private final String status;

    private final String msg;

    SeckillOrderStatusEnum(String status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return this.msg;
    }

    public String getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
